package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;


/**
 * The persistent class for the WORDSELS database table.
 * 
 */
@Entity
@NamedQuery(name="Wordsel.findAll", query="SELECT w FROM Wordsel w")
public class Wordsel implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="WORDSELS_SELVALNO_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="WORDSELS_SELVALNO_GENERATOR")
	private Long selvalno;

	private Boolean isdefault;

	private Boolean wselisuse;

	private String selvalname;
	
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="WORDNO")
	@JSONField(serialize=false)
	private Word word;

	public Wordsel() {
	}

	public Long getSelvalno() {
		return this.selvalno;
	}

	public void setSelvalno(Long selvalno) {
		this.selvalno = selvalno;
	}

	public Boolean getIsdefault() {
		return this.isdefault;
	}

	public void setIsdefault(Boolean isdefault) {
		this.isdefault = isdefault;
	}

	public Boolean getWselisuse() {
		return this.wselisuse;
	}

	public void setWselisuse(Boolean wselisuse) {
		this.wselisuse = wselisuse;
	}

	public String getSelvalname() {
		return this.selvalname;
	}

	public void setSelvalname(String selvalname) {
		this.selvalname = selvalname;
	}

	public Word getWord() {
		return this.word;
	}

	public void setWord(Word word) {
		this.word = word;
	}

	@Override
	public String toString() {
		return "Wordsel [selvalno=" + selvalno + ", isdefault=" + isdefault + ", wselisuse=" + wselisuse + ", selvalname="
				+ selvalname + "]";
	}
	
	
}